from graph import *
windowSize(500, 500)
penColor("black")
penSize( 2 )
brushColor("blue")
x = int(input("x = "))
y = int(input("y = "))
n = int(input("n = "))
if x <= 500 and y <= 500 and x + 50 * n <= 500 and y + 50 * n <= 500 and x + 100 * n <= 500 and y + 100 * n <= 500 and y + 150 * n <= 500 and x >= 0 and y >= 0 and n > 0:
    polygon([(x, y), (x + 50 * n, y), (x + 50 * n, y + 50 * n), (x + 100 * n, y + 50 * n), (x + 100 * n, y + 100 * n), (x + 50 * n, y + 100 * n), (x + 50 * n, y + 150 * n), (x, y + 150 * n), (x, y)])
else:
    print('Размер фигуры превышает максимальный размер поля')
run()
